projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fb83d7
)
gtk-demo: Fix the tagged entry demo
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 17 Jun 2020 21:53:40 +0000
(17:53 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 17 Jun 2020 21:53:40 +0000
(17:53 -0400)
We were using gtk_box_append on a button. Fallout
from the container removal.
demos/gtk-demo/demotaggedentry.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/demotaggedentry.c
b/demos/gtk-demo/demotaggedentry.c
index ed92460e0cf5a1f9f97bff1434f7293d7136c8ce..d66bbaed232b3652301de6e619c4597c2328bb62 100644
(file)
--- a/
demos/gtk-demo/demotaggedentry.c
+++ b/
demos/gtk-demo/demotaggedentry.c
@@
-469,7
+469,7
@@
demo_tagged_entry_tag_set_has_close_button (DemoTaggedEntryTag *tag,
image = gtk_image_new_from_icon_name ("window-close-symbolic");
tag->button = gtk_button_new ();
- gtk_b
ox_append (GTK_BOX
(tag->button), image);
+ gtk_b
utton_set_child (GTK_BUTTON
(tag->button), image);
gtk_widget_set_halign (tag->button, GTK_ALIGN_CENTER);
gtk_widget_set_valign (tag->button, GTK_ALIGN_CENTER);
gtk_button_set_has_frame (GTK_BUTTON (tag->button), FALSE);